package cn.lyh.gulimall.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import lombok.Data;

/**
 * @author lyh
 * @version 1.0
 * @since 2021/4/6
 */
/**
    * 商品会员价格
    */
@Data
@TableName(value = "sms_member_price")
public class SmsMemberPrice {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * sku_id
     */
    @TableField(value = "sku_id")
    private Long skuId;

    /**
     * 会员等级id
     */
    @TableField(value = "member_level_id")
    private Long memberLevelId;

    /**
     * 会员等级名
     */
    @TableField(value = "member_level_name")
    private String memberLevelName;

    /**
     * 会员对应价格
     */
    @TableField(value = "member_price")
    private BigDecimal memberPrice;

    /**
     * 可否叠加其他优惠[0-不可叠加优惠，1-可叠加]
     */
    @TableField(value = "add_other")
    private Boolean addOther;

    public static final String COL_ID = "id";

    public static final String COL_SKU_ID = "sku_id";

    public static final String COL_MEMBER_LEVEL_ID = "member_level_id";

    public static final String COL_MEMBER_LEVEL_NAME = "member_level_name";

    public static final String COL_MEMBER_PRICE = "member_price";

    public static final String COL_ADD_OTHER = "add_other";
}